def file_ext(filename):
    for i in range(len(filename)):
        if filename[i] == '.':
            return filename[i+1:]
print("请输入文件名字：")
filename = input()
print(file_ext(filename))